package emp.entidades;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.axcessfinancial.domain.*;
import com.sun.org.apache.xml.internal.security.c14n.helper.C14nHelper;

@Entity
@Table(name="salidaInternaDet")
public class EntSalidaInternaDet extends com.axcessfinancial.domain.BaseEntity implements Serializable{

	private EntSalidaInterna entSalidaInterna;
	private EntArticulo entArticulo;
	private double cantidad;
	private double subtotal;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="idSalidaInterna")
	public EntSalidaInterna getEntSalidaInterna() {
		return entSalidaInterna;
	}
	public void setEntSalidaInterna(EntSalidaInterna entSalidaInterna) {
		this.entSalidaInterna = entSalidaInterna;
	}
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="idArticulo")
	public EntArticulo getEntArticulo() {
		return entArticulo;
	}
	public void setEntArticulo(EntArticulo entArticulo) {
		this.entArticulo = entArticulo;
	}
	
	@Column(name="cantidad", length=12, precision=2)
	public double getCantidad() {
		return cantidad;
	}
	public void setCantidad(double cantidad) {
		this.cantidad = cantidad;
	}
	
	@Column(name="subtotal", length=12, precision=2)
	public double getSubtotal() {
		return subtotal;
	}
	public void setSubtotal(double subtotal) {
		this.subtotal = subtotal;
	}
	
	public EntSalidaInternaDet() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public EntSalidaInternaDet(EntSalidaInterna entSalidaInterna,
			EntArticulo entArticulo, double cantidad, double subtotal) {
		super();
		this.entSalidaInterna = entSalidaInterna;
		this.entArticulo = entArticulo;
		this.cantidad = cantidad;
		this.subtotal = subtotal;
	}
	
}
